package com.qumitech.visualnovel.component.util;

import com.qumitech.visualnovel.component.concurrent.SegmentLock;

/**
 * @author fangzhipeng
 * @date 2017/11/30
 */
public class LockUtils {

    private static final int LOCK_COUNT = 16;
    private static final boolean LOCK_FAIR = false;
    private static final SegmentLock SEGMENT_LOCK = new SegmentLock(LOCK_COUNT, LOCK_FAIR);

    public static SegmentLock getInstance() {
        return SEGMENT_LOCK;
    }

}
